<%@page import="Entities.*"%>
<%@page import="Helpers.*"%>
<%@page import="Hibernate.*"%>
<%@page import="java.util.*"%>

<%@include file="../../views/header.jsp" %>
<%@include file="../../views/mainMenu.jsp" %>
<%@include file="../../views/userMenu.jsp" %>
<%@include file="../../views/cntColumnOpen.jsp" %>


<h2>Beheer profielen</h2>

 
<li class="likert">
    <table cellspacing="0">
        <thead>
            <tr>
                <th>&nbsp;</th>
                <td>Naam</td>
                <td>Email</td>
                <td>Type</td>
                <td>&nbsp;</td>
            </tr>
        </thead>
        <tbody>

            <%
              PersonenHelper persoonHelper = new PersonenHelper();
              List<Personen> personen = persoonHelper.getpersonen();
              for (Personen persoon : personen)
              {
            %>

                <tr class="">
                    <th><%= persoon.getId()%></th>
                    <td><strong>
                        <%=persoon.getVoornaam()%>
                        <%=persoon.getTussenvoegsel()%>
                        <%=persoon.getAchternaam()%></strong>
                    </td>
                    <td><%= persoon.getEmail()%></td>
                    <td><%= persoon.getRollen().getNaam()%></td>
                    <td><a href="webpages/Personen/showPersoon.jsp?id=<%= persoon.getId()%>"><img src="images/edit.png" border="0" /></a>
                        <a href="webpages/Personen/deletePersoon.jsp?id=<%= persoon.getId()%>"><img src="images/delete.png" border="0" /></a>
                    </td>
                </tr>
            <% }%>



        </tbody>
    </table>
</li>
<p><a class="btn" href="webpages/Personen/addPersoon.jsp">Nieuwe gebruiker toevoegen</a></p>

<div class="fix"></div>
<!--/post-->

<br class="fix" />

<%@include file="../../views/cntColumnRight.jsp" %>
<%@include file="../../views/footer.jsp" %>